package com.sunbeam.junit;

import java.util.UUID;

import org.apache.commons.beanutils.locale.converters.DateLocaleConverter;
import org.junit.Test;

import com.sunbeam.domain.User;
import com.sunbeam.utils.WebUtils;
import com.sunbeam.web.form.LoginForm;

/**
 * @Title: Temp.java
 * @Package com.sunbeam.junit
 * @Description: TODO
 * @author lyz lyzpoq_gmail_com
 * @date 2014/02/11 14:55:29
 * @version V1.0
 */
public class Temp {

	@Test
	public void test(){
		DateLocaleConverter dlc=new DateLocaleConverter();
		dlc.convert("2012-01-32", "yyyy-MM-dd");
	}
	@Test
	public void test1(){
		System.out.println(UUID.randomUUID().toString());
	}
	
	@Test
	public void test2(){
		LoginForm formBean=new LoginForm();
		formBean.setBirthday("2012-01-01");
		User user=WebUtils.copyBeans(User.class, formBean);
	}
}

